package com.pc.admin.util;
 

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
 
/**
 * 数据库模型设计时抽出所有通用字段，抽象为父类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public abstract class BaseEntity implements Serializable {
 
    @CreateTime
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;
 
    @UpdateTime
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;
 
    @CreateBy
    private String createdBy;
 
    @UpdateBy
    private String updatedBy;
 

 
}


